﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsVisitDaily" targetNamespace="http://tempuri.org/dsVisitDaily.xsd" xmlns:mstns="http://tempuri.org/dsVisitDaily.xsd" xmlns="http://tempuri.org/dsVisitDaily.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="CarlsbergConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="CarlsbergConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.CarlsbergConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ReportVisitDailyTableAdapter" GeneratorDataComponentClassName="ReportVisitDailyTableAdapter" Name="ReportVisitDaily" UserDataComponentName="ReportVisitDailyTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CarlsbergConnectionString (Web.config)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        ReportVisitDaily.ProvinceCode, ReportVisitDaily.ProvinceName, ReportVisitDaily.UserCode, ReportVisitDaily.UserName, ReportVisitDaily.VisitDate, 
                         ReportVisitDaily.IndexCode AS Expr1, ReportVisitDaily.IndexValue, ReportIndex.IndexName
FROM            ReportVisitDaily INNER JOIN
                         ReportIndex ON ReportVisitDaily.IndexCode = ReportIndex.IndexCode
ORDER BY ReportIndex.IndexCode</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ProvinceCode" DataSetColumn="ProvinceCode" />
              <Mapping SourceColumn="ProvinceName" DataSetColumn="ProvinceName" />
              <Mapping SourceColumn="UserCode" DataSetColumn="UserCode" />
              <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
              <Mapping SourceColumn="VisitDate" DataSetColumn="VisitDate" />
              <Mapping SourceColumn="IndexValue" DataSetColumn="IndexValue" />
              <Mapping SourceColumn="Expr1" DataSetColumn="Expr1" />
              <Mapping SourceColumn="IndexName" DataSetColumn="IndexName" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsVisitDaily" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="dsVisitDaily" msprop:Generator_UserDSName="dsVisitDaily">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ReportVisitDaily" msprop:Generator_TableClassName="ReportVisitDailyDataTable" msprop:Generator_TableVarName="tableReportVisitDaily" msprop:Generator_TablePropName="ReportVisitDaily" msprop:Generator_RowDeletingName="ReportVisitDailyRowDeleting" msprop:Generator_RowChangingName="ReportVisitDailyRowChanging" msprop:Generator_RowEvHandlerName="ReportVisitDailyRowChangeEventHandler" msprop:Generator_RowDeletedName="ReportVisitDailyRowDeleted" msprop:Generator_UserTableName="ReportVisitDaily" msprop:Generator_RowChangedName="ReportVisitDailyRowChanged" msprop:Generator_RowEvArgName="ReportVisitDailyRowChangeEvent" msprop:Generator_RowClassName="ReportVisitDailyRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ProvinceCode" msprop:Generator_ColumnVarNameInTable="columnProvinceCode" msprop:Generator_ColumnPropNameInRow="ProvinceCode" msprop:Generator_ColumnPropNameInTable="ProvinceCodeColumn" msprop:Generator_UserColumnName="ProvinceCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProvinceName" msprop:Generator_ColumnVarNameInTable="columnProvinceName" msprop:Generator_ColumnPropNameInRow="ProvinceName" msprop:Generator_ColumnPropNameInTable="ProvinceNameColumn" msprop:Generator_UserColumnName="ProvinceName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="UserCode" msprop:Generator_ColumnVarNameInTable="columnUserCode" msprop:Generator_ColumnPropNameInRow="UserCode" msprop:Generator_ColumnPropNameInTable="UserCodeColumn" msprop:Generator_UserColumnName="UserCode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn" msprop:Generator_UserColumnName="UserName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VisitDate" msprop:Generator_ColumnVarNameInTable="columnVisitDate" msprop:Generator_ColumnPropNameInRow="VisitDate" msprop:Generator_ColumnPropNameInTable="VisitDateColumn" msprop:Generator_UserColumnName="VisitDate" type="xs:dateTime" minOccurs="0" />
              <xs:element name="IndexValue" msprop:Generator_ColumnVarNameInTable="columnIndexValue" msprop:Generator_ColumnPropNameInRow="IndexValue" msprop:Generator_ColumnPropNameInTable="IndexValueColumn" msprop:Generator_UserColumnName="IndexValue" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Expr1" msprop:Generator_ColumnVarNameInTable="columnExpr1" msprop:Generator_ColumnPropNameInRow="Expr1" msprop:Generator_ColumnPropNameInTable="Expr1Column" msprop:Generator_UserColumnName="Expr1" type="xs:int" minOccurs="0" />
              <xs:element name="IndexName" msprop:Generator_ColumnVarNameInTable="columnIndexName" msprop:Generator_ColumnPropNameInRow="IndexName" msprop:Generator_ColumnPropNameInTable="IndexNameColumn" msprop:Generator_UserColumnName="IndexName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>